package com.winit.common.util.treeUtils;

import java.io.Serializable;
import java.util.List;

/**
 * Created by wangjian on 2017/10/27.
 * 属性结构基础bean
 */
public class BaseTree<T> implements Serializable{

    //数据库记录id
    private String id;
    //实体作为parent时  用的id 树形结构内唯一
    private String parentId;
    //更新的状态
    private String name;
    //树形结构展示用名
    private String nodeType;
    //子节点列表
    private List<BaseTree> children;
    //每种树形结构单独的属性
    private T metaData;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNodeType() {
        return nodeType;
    }

    public void setNodeType(String nodeType) {
        this.nodeType = nodeType;
    }

    public List<BaseTree> getChildren() {
        return children;
    }

    public void setChildren(List<BaseTree> children) {
        this.children = children;
    }

    public T getMetaData() {
        return metaData;
    }

    public void setMetaData(T metaData) {
        this.metaData = metaData;
    }
}
